package com.runmi.webchat.aftersale.web.api.service;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.runmi.webchat.aftersale.dbcore.dao.SetupItemDao;
import com.runmi.webchat.aftersale.dbcore.entity.SetupItem;
import com.runmi.webchat.aftersale.web.api.vo.SetupReqVo;

@Service
public class SetupService {

	@Autowired
	private SetupItemDao setupItemDao;
	
	public List<SetupItem> getItem(Integer shopId){
		List<SetupItem> result=new ArrayList<SetupItem>();
		List<SetupItem> items=setupItemDao.getSetupItemList(shopId);
		for(SetupItem item:items){
//			SetupReqVo setupReqVo=new SetupReqVo();
//			setupReqVo.setId(item.getId());
//			setupReqVo.setBarCode(item.getBarCode());
//			setupReqVo.setItemName(item.getItemName());
//			setupReqVo.setItemCode(item.getItemCode());
			result.add(item);
		}		
		return result;
	}
}
